function [ v ] = logLoss( x, o, c)

v = log(1 + exp(c*(x - o - 0.5))) + log(1 + exp(c*(- x + o - 0.5)));
% v = (x - o).^2/2;

minv = log(1 + exp(- 0.5*c)) + log(1 + exp(- 0.5*c));
v = v - minv;

end